projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37b69cd
)
(directory_files_internal): Convert result from readdir
author
Andrew Innes
<andrewi@gnu.org>
Wed, 17 Jan 2001 11:11:06 +0000
(11:11 +0000)
committer
Andrew Innes
<andrewi@gnu.org>
Wed, 17 Jan 2001 11:11:06 +0000
(11:11 +0000)
to a unibyte string initially, to avoid possible misinterpretation
of some bytes as the internal form of Emacs characters.
src/dired.c
patch
|
blob
|
history
diff --git
a/src/dired.c
b/src/dired.c
index 04b14f6c4a53622ee1df6c65e6a86476bf6753d7..4994241c2cf68ad4f259af0b8dc7500c705cf6cb 100644
(file)
--- a/
src/dired.c
+++ b/
src/dired.c
@@
-218,7
+218,7
@@
directory_files_internal (directory, full, match, nosort, attrs)
struct gcpro gcpro1, gcpro2;
len = NAMLEN (dp);
- name = finalname = make_string (dp->d_name, len);
+ name = finalname = make_
unibyte_
string (dp->d_name, len);
GCPRO2 (finalname, name);
/* Note: ENCODE_FILE can GC; it should protect its argument,